package com.song.oa.entity;

import lombok.Data;

/**
 * @Author 宋伟宁
 * @Date 2024/3/19
 * @Version 1.0
 **/
@Data
public class R<T> {

    private Integer code;
    private Boolean flag;
    private String message;
    private T data;

    public R(){ }

    public R(Integer code, String message){
        this.code = code;
        this.message = message;
    }
    public R(Integer code, Boolean flag, T data){
        this.code = code;
        this.flag = flag;
        this.data = data;
    }
    public R(Integer code, Boolean flag, String message){
        this.code = code;
        this.flag = flag;
        this.message = message;
    }
    public R(Integer code, String message, T data){
        this(code, message);
        this.data = data;
    }
    public R(Integer code, Boolean flag, String message, T data){
        this(code, flag, message);
        this.data = data;
    }

}
